from config import AI_KEY_KIMI
from ai.common import get_result_by_open_ai
from ai.consts import PLATFORM_KIMI



def get_kimi_result(data, model_name):
    kimi_ai_data = {
        "api_key": AI_KEY_KIMI,
        "model": model_name,
        "url": "https://api.moonshot.cn/v1",
        "platform": PLATFORM_KIMI
    }
    return get_result_by_open_ai(data, kimi_ai_data)

